package com.syni.mdd.sjb.marketing.basemarket.utils.cps.dto;

import com.syni.mdd.sjb.marketing.basemarket.entity.dto.CpsBaseResultDto;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class OrderListResultDto extends CpsBaseResultDto {
    private Integer pageNo;
    private Integer pageSize;
    private Integer total;
    private Integer totalPage;

    private List<Records> records = new ArrayList<>();


    @Data
    public static class Records{
        private String orderNo;
        private Double payAmount;
        private Double totalAmount;
        private String shareUserName;
        private String userAvatar;
        private String userName;
        private String userPhone;
        private String createTime;
        private Double totalShareAmount;
        private Double totalOwnerAmount;
        private List<Items> items = new ArrayList<>();
        private Integer totalQuantity = 0;
        private List<WriteOff> writeOffList = new ArrayList<>();
    }



    @Data
    public static class Items{
        private String productName;
        private String productPic;
        private String productSkuName;
        private Double price;
        private Integer quantity;
        private Double shareAmount;
    }

    @Data
    public static class WriteOff{
        private String writeOffCode;
        private Integer writeOffStatus;
        private String writeOffTime;
    }

}
